Restructure Claude review: remove static analysis, add CI-informed follow-up#728
Open
AlexKantor87 wants to merge 1 commit intomainfrom
Open
Restructure Claude review: remove static analysis, add CI-informed follow-up#728AlexKantor87 wants to merge 1 commit intomainfrom
AlexKantor87 wants to merge 1 commit intomainfrom
Conversation
…ed follow-up
Pass 1 (pull_request): Fast code review without static analysis.
- Removes Go setup step and go build/vet from allowed tools
- Claude focuses on logic, security, design, and testing
- Fires immediately on PR open/sync
Pass 2 (workflow_run): CI-informed follow-up after Main pipeline completes.
- Resolves which PR the pipeline run belongs to
- Reads pipeline results via gh pr checks / gh run view
- If CI failed: Claude analyses failures against the PR diff
and posts a targeted follow-up comment
- If CI passed: no action (avoids noise)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two-Pass Claude PR Review Architecture
Replaces the current single-pass Claude review workflow with a two-pass architecture that separates code review from CI failure analysis.
Why
Team feedback identified that the previous workflow duplicated static analysis already run by the pipeline. Instead of having Claude run its own
go build,go vet, andgo mod tidychecks, this approach lets the existing CI pipeline do what it's good at, and has Claude analyse the results.How It Works
Pass 1 — Code Review (on PR open/update)
pull_requestevents (opened, synchronize, reopened)Pass 2 — CI Failure Analysis (after pipeline fails)
workflow_runwhen the "Main" workflow completes with a failuregh pr listgh run view --log-failed) and correlates with the PR diffKey Design Decisions
Testing